package com.huisang.dao.provider;

import com.huisang.pojo.Pro;

import java.sql.Connection;
import java.util.List;


public interface ProviderDao {
    //获取供应商列表
    List<Pro> getProviderList(Connection connection, String proName, String proCode) throws Exception;
    //添加供应商
    int add(Connection connection, Pro provider) throws Exception;
    //查看供应商
    Pro getProviderById(Connection connection, String id) throws Exception;
    //修改供应商
    int modify(Connection connection, Pro provider) throws Exception;
    //删除供应商
    int deleteProviderById(Connection connection, String delId) throws Exception;
}
